<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateBookmarkChecksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('bookmark_checks', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('bookmark_id')->comment('对应的网络书签ID');
            $table->unsignedBigInteger('check_user_id')->nullable()->comment('审核用户 id');
            $table->dateTime('check_at')->nullable()->comment('审核时间');
            $table->unsignedBigInteger('deleted_user_id')->nullable()->comment('删除用户 id');
            $table->dateTime('deleted_at')->nullable()->comment('删除时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('bookmark_checks');
    }
}
